package com.cds.alert.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cds.alert.dao.AlertReportMapper;
import com.cds.alert.ibatis.Criteria;
import com.cds.alert.pojo.AlertReport;
import com.cds.alert.service.AlertReportService;

@Service("alertReportService")
@Transactional
public class AlertReportServiceImpl implements AlertReportService {

	@Autowired
	AlertReportMapper alertReportMapper;
	
	@Transactional(readOnly = true)
	public List<AlertReport> queryByExample(Criteria example) {
		return alertReportMapper.queryByExample(example);
	}

	public void insert(AlertReport alertReport) {
		alertReportMapper.insert(alertReport);
	}
	
	@Transactional(readOnly = true)
	public AlertReport selectByPrimaryKey(Long id) {
		return alertReportMapper.selectByPrimaryKey(id);
	}

}
